package form;

import java.util.ArrayList;

import form.window.comboSelect;

import shared.Pair;

public class SelectedItems
{
	private Pair<String, ArrayList<String>> selectedBorn;
	private Pair<String, ArrayList<String>> selectedFamily;
	private Pair<String, ArrayList<String>> selectedAge;
	private Pair<String, ArrayList<String>> selectedCity;
	private String sortBy = "";
	
	public SelectedItems()
	{
		selectedBorn = new Pair<String,ArrayList<String>>(comboSelect.friendBirthPlace.getCombo(), new ArrayList<String>() );
		selectedFamily = new Pair<String,ArrayList<String>>(comboSelect.familyRelationName.getCombo(), new ArrayList<String>() );
		selectedAge = new Pair<String,ArrayList<String>>(comboSelect.friendAge.getCombo(), new ArrayList<String>() );
		selectedCity = new Pair<String,ArrayList<String>>(comboSelect.friendCurrentPlace.getCombo(), new ArrayList<String>() );
	}
	
	public ArrayList<String> getSelectedBorn()
	{
		return selectedBorn.getValue();
	}
	
	public ArrayList<String> getSelectedFamily()
	{
		return selectedFamily.getValue();
	}
	
	public ArrayList<String> getSelectedAge()
	{
		return selectedAge.getValue();
	}
	
	public ArrayList<String> getSelectedCity()
	{
		return selectedCity.getValue();
	}

	public String getSortBy() {
		return sortBy;
	}

	public void setSortBy(String sortBy) {
		this.sortBy = sortBy;
	}
}
